package com.gupaoedu.kafka.kafkapractice.springboot;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;



/**
 * @Author: JLL
 * @Date: 2019/10/31 22:56
 */

@Component
public class GpKafkaProducer {


    @Autowired
    private KafkaTemplate<Integer,String> kafkaTemplate;

    public void send(){
        kafkaTemplate.send("test",1,"msgData");
    }

}
